import Home from '../page/Home'
import Detail from '../page/Detail'
import Login from '../page/Login'

import Main from '../page/Home/Main'
import My from '../page/Home/My'
import Car from '../page/Home/Car'

const routes = [{
  path: '/home',
  name: 'home',
  component: Home,
  children: [{
    path: '/home/main',
    name: 'main',
    component: Main,
  },{
    path: '/home/car',
    name: 'car',
    component: Car,
  },{
    path: '/home/my',
    name: 'my',
    component: My,
  }]
}, {
  path: '/login',
  name: 'login',
  component: Login
}, {
  path: '/detail',
  name: 'detail',
  component: Detail
}, {
  from: '/',
  to: '/home/main'
}]


export default routes